package org.origin.ferret.system.model.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 重置系统用户密码-实体类
 *
 * @author ferret
 * @version 2024-05-08
 */
@Data
@Schema(description = "重置系统用户密码-实体类")
public class SysUserPasswordDto {
    @NotNull(message = "主键ID不能为空")
    @Schema(description = "主键ID", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @NotBlank(message = "旧密码不能为空")
    @Schema(description = "旧密码", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Schema(description = "新密码", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private String newPassword;
}
